\section{ec\+\_\+device Struct Reference}
\label{structec__device}\index{ec\+\_\+device@{ec\+\_\+device}}


Ether\+C\+AT device.  


\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\mbox{\label{structec__device_a3678edcc317d6324936b02c4509de443}} 
\textbf{ ec\+\_\+master\+\_\+t} $\ast$ \textbf{ master}
\begin{DoxyCompactList}\small\item\em Ether\+C\+AT master. \end{DoxyCompactList}\item 
\mbox{\label{structec__device_a9503692598d3950969ca8b4daf5fd5ac}} 
struct net\+\_\+device $\ast$ \textbf{ dev}
\begin{DoxyCompactList}\small\item\em pointer to the assigned net\+\_\+device \end{DoxyCompactList}\item 
\mbox{\label{structec__device_aa51d769eb590a04e98f8544ea758322f}} 
\textbf{ ec\+\_\+pollfunc\+\_\+t} \textbf{ poll}
\begin{DoxyCompactList}\small\item\em pointer to the device\textquotesingle{}s poll function \end{DoxyCompactList}\item 
\mbox{\label{structec__device_a79af9075672aa2abf993a703b4d964ed}} 
struct module $\ast$ \textbf{ module}
\begin{DoxyCompactList}\small\item\em pointer to the device\textquotesingle{}s owning module \end{DoxyCompactList}\item 
\mbox{\label{structec__device_a0a3f5a12926e0d4ef17409d05b36d18a}} 
uint8\+\_\+t \textbf{ open}
\begin{DoxyCompactList}\small\item\em true, if the net\+\_\+device has been opened \end{DoxyCompactList}\item 
\mbox{\label{structec__device_ab58236227ed28e568e0de571499d5e68}} 
uint8\+\_\+t \textbf{ link\+\_\+state}
\begin{DoxyCompactList}\small\item\em device link state \end{DoxyCompactList}\item 
\mbox{\label{structec__device_a733aeb60035ac3696f05dc33adf49004}} 
struct sk\+\_\+buff $\ast$ \textbf{ tx\+\_\+skb} [\textbf{ E\+C\+\_\+\+T\+X\+\_\+\+R\+I\+N\+G\+\_\+\+S\+I\+ZE}]
\begin{DoxyCompactList}\small\item\em transmit skb ring \end{DoxyCompactList}\item 
\mbox{\label{structec__device_af9353b63b910b0b64d06837b3f7075b7}} 
unsigned int \textbf{ tx\+\_\+ring\+\_\+index}
\begin{DoxyCompactList}\small\item\em last ring entry used to transmit \end{DoxyCompactList}\item 
\mbox{\label{structec__device_af98c616a488455db59c5c4297206b8fb}} 
unsigned long \textbf{ jiffies\+\_\+poll}
\begin{DoxyCompactList}\small\item\em jiffies of last poll \end{DoxyCompactList}\item 
u64 \textbf{ tx\+\_\+count}
\begin{DoxyCompactList}\small\item\em Number of frames sent. \end{DoxyCompactList}\item 
u64 \textbf{ last\+\_\+tx\+\_\+count}
\begin{DoxyCompactList}\small\item\em Number of frames sent of last statistics cycle. \end{DoxyCompactList}\item 
u64 \textbf{ rx\+\_\+count}
\begin{DoxyCompactList}\small\item\em Number of frames received. \end{DoxyCompactList}\item 
u64 \textbf{ last\+\_\+rx\+\_\+count}
\begin{DoxyCompactList}\small\item\em Number of frames received of last statistics cycle. \end{DoxyCompactList}\item 
u64 \textbf{ tx\+\_\+bytes}
\begin{DoxyCompactList}\small\item\em Number of bytes sent. \end{DoxyCompactList}\item 
u64 \textbf{ last\+\_\+tx\+\_\+bytes}
\begin{DoxyCompactList}\small\item\em Number of bytes sent of last statistics cycle. \end{DoxyCompactList}\item 
u64 \textbf{ rx\+\_\+bytes}
\begin{DoxyCompactList}\small\item\em Number of bytes received. \end{DoxyCompactList}\item 
\mbox{\label{structec__device_a53f0337afe2d2bdb4b24e2ee4ccb8180}} 
u64 \textbf{ last\+\_\+rx\+\_\+bytes}
\begin{DoxyCompactList}\small\item\em Number of bytes received of last statistics cycle. \end{DoxyCompactList}\item 
u64 \textbf{ tx\+\_\+errors}
\begin{DoxyCompactList}\small\item\em Number of transmit errors. \end{DoxyCompactList}\item 
\mbox{\label{structec__device_a0de91079b171a6b07cb724a6362f340b}} 
s32 \textbf{ tx\+\_\+frame\+\_\+rates} [\textbf{ E\+C\+\_\+\+R\+A\+T\+E\+\_\+\+C\+O\+U\+NT}]
\begin{DoxyCompactList}\small\item\em Transmit rates in frames/s for different statistics cycle periods. \end{DoxyCompactList}\item 
\mbox{\label{structec__device_a8e78783b1d22fd12b5d2abe263184bb1}} 
s32 \textbf{ rx\+\_\+frame\+\_\+rates} [\textbf{ E\+C\+\_\+\+R\+A\+T\+E\+\_\+\+C\+O\+U\+NT}]
\begin{DoxyCompactList}\small\item\em Receive rates in frames/s for different statistics cycle periods. \end{DoxyCompactList}\item 
s32 \textbf{ tx\+\_\+byte\+\_\+rates} [\textbf{ E\+C\+\_\+\+R\+A\+T\+E\+\_\+\+C\+O\+U\+NT}]
\begin{DoxyCompactList}\small\item\em Transmit rates in byte/s for different statistics cycle periods. \end{DoxyCompactList}\item 
s32 \textbf{ rx\+\_\+byte\+\_\+rates} [\textbf{ E\+C\+\_\+\+R\+A\+T\+E\+\_\+\+C\+O\+U\+NT}]
\begin{DoxyCompactList}\small\item\em Receive rates in byte/s for different statistics cycle periods. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT device. 

An Ether\+C\+AT device is a network interface card, that is owned by an Ether\+C\+AT master to send and receive Ether\+C\+AT frames with. 

Definition at line 81 of file device.\+h.



\subsection{Field Documentation}
\mbox{\label{structec__device_a0cdf625147761dedcd8aa0ee08434949}} 
\index{ec\+\_\+device@{ec\+\_\+device}!tx\+\_\+count@{tx\+\_\+count}}
\index{tx\+\_\+count@{tx\+\_\+count}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{tx\+\_\+count}
{\footnotesize\ttfamily u64 ec\+\_\+device\+::tx\+\_\+count}



Number of frames sent. 



Definition at line 100 of file device.\+h.

\mbox{\label{structec__device_afca221601cff7e6280283df48902a019}} 
\index{ec\+\_\+device@{ec\+\_\+device}!last\+\_\+tx\+\_\+count@{last\+\_\+tx\+\_\+count}}
\index{last\+\_\+tx\+\_\+count@{last\+\_\+tx\+\_\+count}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{last\+\_\+tx\+\_\+count}
{\footnotesize\ttfamily u64 ec\+\_\+device\+::last\+\_\+tx\+\_\+count}



Number of frames sent of last statistics cycle. 



Definition at line 101 of file device.\+h.

\mbox{\label{structec__device_ab53eaa1db2b7696c28f06146fd253786}} 
\index{ec\+\_\+device@{ec\+\_\+device}!rx\+\_\+count@{rx\+\_\+count}}
\index{rx\+\_\+count@{rx\+\_\+count}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{rx\+\_\+count}
{\footnotesize\ttfamily u64 ec\+\_\+device\+::rx\+\_\+count}



Number of frames received. 



Definition at line 102 of file device.\+h.

\mbox{\label{structec__device_a5ad25fde7d43696988dcb602fa947a7b}} 
\index{ec\+\_\+device@{ec\+\_\+device}!last\+\_\+rx\+\_\+count@{last\+\_\+rx\+\_\+count}}
\index{last\+\_\+rx\+\_\+count@{last\+\_\+rx\+\_\+count}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{last\+\_\+rx\+\_\+count}
{\footnotesize\ttfamily u64 ec\+\_\+device\+::last\+\_\+rx\+\_\+count}



Number of frames received of last statistics cycle. 



Definition at line 103 of file device.\+h.

\mbox{\label{structec__device_a969a3e6f0057eeb8b1becc34d500e281}} 
\index{ec\+\_\+device@{ec\+\_\+device}!tx\+\_\+bytes@{tx\+\_\+bytes}}
\index{tx\+\_\+bytes@{tx\+\_\+bytes}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{tx\+\_\+bytes}
{\footnotesize\ttfamily u64 ec\+\_\+device\+::tx\+\_\+bytes}



Number of bytes sent. 



Definition at line 105 of file device.\+h.

\mbox{\label{structec__device_ac4a738c0943134edc5c68f2c85b9a089}} 
\index{ec\+\_\+device@{ec\+\_\+device}!last\+\_\+tx\+\_\+bytes@{last\+\_\+tx\+\_\+bytes}}
\index{last\+\_\+tx\+\_\+bytes@{last\+\_\+tx\+\_\+bytes}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{last\+\_\+tx\+\_\+bytes}
{\footnotesize\ttfamily u64 ec\+\_\+device\+::last\+\_\+tx\+\_\+bytes}



Number of bytes sent of last statistics cycle. 



Definition at line 106 of file device.\+h.

\mbox{\label{structec__device_afea25f45c6911c97a08b8615154a2b91}} 
\index{ec\+\_\+device@{ec\+\_\+device}!rx\+\_\+bytes@{rx\+\_\+bytes}}
\index{rx\+\_\+bytes@{rx\+\_\+bytes}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{rx\+\_\+bytes}
{\footnotesize\ttfamily u64 ec\+\_\+device\+::rx\+\_\+bytes}



Number of bytes received. 



Definition at line 107 of file device.\+h.

\mbox{\label{structec__device_a076ce4fd0d53e53ba7236b12bf4ecf66}} 
\index{ec\+\_\+device@{ec\+\_\+device}!tx\+\_\+errors@{tx\+\_\+errors}}
\index{tx\+\_\+errors@{tx\+\_\+errors}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{tx\+\_\+errors}
{\footnotesize\ttfamily u64 ec\+\_\+device\+::tx\+\_\+errors}



Number of transmit errors. 



Definition at line 110 of file device.\+h.

\mbox{\label{structec__device_a5decb734bd07c7e1a1b66e08904f0bba}} 
\index{ec\+\_\+device@{ec\+\_\+device}!tx\+\_\+byte\+\_\+rates@{tx\+\_\+byte\+\_\+rates}}
\index{tx\+\_\+byte\+\_\+rates@{tx\+\_\+byte\+\_\+rates}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{tx\+\_\+byte\+\_\+rates}
{\footnotesize\ttfamily s32 ec\+\_\+device\+::tx\+\_\+byte\+\_\+rates[\textbf{ E\+C\+\_\+\+R\+A\+T\+E\+\_\+\+C\+O\+U\+NT}]}



Transmit rates in byte/s for different statistics cycle periods. 



Definition at line 117 of file device.\+h.

\mbox{\label{structec__device_a577e0651d974aa3db43fcb8fab639637}} 
\index{ec\+\_\+device@{ec\+\_\+device}!rx\+\_\+byte\+\_\+rates@{rx\+\_\+byte\+\_\+rates}}
\index{rx\+\_\+byte\+\_\+rates@{rx\+\_\+byte\+\_\+rates}!ec\+\_\+device@{ec\+\_\+device}}
\subsubsection{rx\+\_\+byte\+\_\+rates}
{\footnotesize\ttfamily s32 ec\+\_\+device\+::rx\+\_\+byte\+\_\+rates[\textbf{ E\+C\+\_\+\+R\+A\+T\+E\+\_\+\+C\+O\+U\+NT}]}



Receive rates in byte/s for different statistics cycle periods. 



Definition at line 119 of file device.\+h.

